package com.woniuxy.service;

import com.woniuxy.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.dto.DtoMyPage;
import com.woniuxy.dto.DtoUserInfo;
import com.woniuxy.parameter.UserLoginParam;

import java.lang.reflect.InvocationTargetException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XXX
 * @since 2021-05-12
 */
public interface UserService extends IService<User> {
    boolean updateUsr(int userId, String account, String userName, String sex, String tel, String eMail);

    //用户登录
    public User login(UserLoginParam userLoginParam);


    DtoMyPage<DtoUserInfo> selectAllUsers(int current, int size) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException;

    DtoMyPage<DtoUserInfo> selectUsrByInfo(String info, int current, int size) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException;

}
